<template>
	<view class="serach-container">
		<view class="search-bar"  @click='goToSearch'>
			<uni-icons type="search" size="17"></uni-icons>
			<text class="placeholder">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			goToSearch(){
				uni.navigateTo({
					url:'/subpkg/search/search'
				})
			}
		}
	}
</script>

<style lang="scss">
.serach-container{
	background-color: #c00000;
	height: 50px;
	display: flex;
	align-items: center;
		padding: 0 10px;
	.search-bar{
		background-color: #fff;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 15px;
		height: 36px;
		.placeholder{
			font-size: 15px;
			margin-left: 5px;
		}
	}
}
</style>
